//
// Created by LiuYou on 2021/5/8.
//

#ifndef OFFER_CMYSTRING_HPP
#define OFFER_CMYSTRING_HPP


class CMyString {
public:
    explicit CMyString(char* mPData = nullptr);

    CMyString(const CMyString& str);

    /**
     * @brief 添加的赋值运算符函数
     * @param rhs
     * @return
     */
    CMyString& operator=(const CMyString& rhs);

    virtual ~CMyString();

    char* getMPData() const;


private:
    char* m_PData;
};


#endif //OFFER_CMYSTRING_HPP
